<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<div class="data_list">
		<div class="data_list_title">
			<img src="${pageContext.request.contextPath}/static/images/search_icon.png"/>
			搜索&nbsp;<font color="red">${q}&nbsp;</font>的结果&nbsp;（总搜索到&nbsp;${resultTotal}&nbsp;条记录）
		</div>
		<div class="datas">
			<ul>
				<c:choose>
					<c:when test="${blogList.size()} == 0">
						<div align="center" style="padding-top: 20px">
							为查询到结果，请换个关键词搜索
						</div>
					</c:when>
					<c:otherwise>
						<c:forEach var="blog" items="${blogList}">
							<li style="padding-top: 20px">
								<span class="title">
									<a href="${pageContext.request.contextPath}/blog/articles/${blog.id}.html" target="_blank">${blog.title}</a>
								</span>
								<span class="summary">摘要：${blog.content}...</span>
								<p>参考链接：
									<a href="${pageContext.request.contextPath}/blog/articles/${blog.id}.html" target="_blank">
										http://localhost:8080/Blog/blog/articles/${blog.id}.html
									</a>
								</p>
								发布日期${blog.releaseDateStr}
							</li>

						</c:forEach>
					</c:otherwise>
				</c:choose>
			</ul>
		</div>
	${pageCode}
   </div>


